<?php
query_posts(array('category_name' => 'feature', 'showposts' => 5));
?>

    
    <ul id="feature_post">
        <?php while (have_posts()) : the_post(); ?>
        <?php
            $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full');
            $img = '<img src="'.TIMTHUMB_URL . $large_image_url[0] .'&amp;w='.IMG_SLIDSHOW_WIDTH.'&amp;h='.IMG_SLIDSHOW_HEIGHT.'&amp;zc=1&amp;q=100&amp;a=c" alt="' . get_the_title() . '" />';
        ?>
        <li>
            <div class="photo">
                <a href="<?php the_permalink(); ?>"><?php echo $img ?></a>
            </div>
            <div class="last_topic">
                <a href="<?php the_permalink(); ?>"><?php the_title() ?></a>
                <!-- <div class="last_topic_summary">
                    <?php 
                       /* $summary = get_post_meta($post->ID, 'slideshow_summary', true);
                        
                        if ($summary != '') {
                            echo '<p>'. $summary .'</p>';
                        }*/
                    ?>
                     <a class="last-readmore" href="<?php //the_permalink(); ?>">អាន​លម្អិត</a> 
                </div> -->
                <span class="clearfix"></span>
            </div>
        </li>
      <?php endwhile;
            wp_reset_query();  ?>
    </ul>

<script>

jQuery('#feature_post').anythingSlider({
    buildArrows     : false,
    buildStartStop  : false,
    autoPlay        : true,
    autoplayLocked  : false,
    mode            : 'fade',
    hashTags        : false
});

</script>
  
            
            
